# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-text-reform
pkgver=1.20
pkgrel=2
pkgdesc="Text::Reform perl module"
url="https://metacpan.org/release/Text-Reform"
arch="noarch"
license="GPL-1.0-or-later or Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/C/CH/CHORNY/Text-Reform-$pkgver.tar.gz"

builddir="$srcdir"/Text-Reform-$pkgver

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="2a8901c59dcee91d479735c243ee563da69dbbc340ba5573dc0d6be62cf7b485cea2e90301eb8b529bd8b39a1fc09597381680c4882c17462613321a80f2a110  Text-Reform-1.20.tar.gz"
